function Ddavid_call_SVM_training_single_label(AllDataTraining, SampledTrueLabelTraining, C, G, Weight)

N = size(SampledTrueLabelTraining, 1);

AllDataTraining_sparse = sparse(AllDataTraining);

fid = fopen('Data.wgt', 'w');
for i = 1:N
    fprintf(fid, '%f\n', Weight);
end
fclose(fid);

libsvmwrite('Data.train', SampledTrueLabelTraining, AllDataTraining_sparse);
system(['D:\School\Meeting\Program\Matlab\Toolbox\libsvm-weights-3.18\svm-train.exe -c ' num2str(C) ' -g ' num2str(G) ' -b 1 -W Data.wgt Data.train Data.model']);
